package com.th.admin.service;

import com.th.admin.bean.Users;
import com.th.admin.mapper.UsersMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author ThreePure
 * @date 2022/4/21 23:42
 * @description: TODO
 * @since 1.8
 */
@Service
@Slf4j
public class UsersService {
    @Autowired
    private UsersMapper usersMapper;

    public Users getUsers(Long id){
        log.info("【Service】收到的id为{}",id);
        return usersMapper.getUsers(id);
    }
}
